package com.song.mapper;

import com.song.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    User addUser(User user);


    @Select("select * from user where openid=#{openid}")
    User getUserByOpenid(String openid);
}
